
<div id="actionbar" class="button-group">
    <a href="javascript:;" url="{:url('engineer/edit')}" class="button button-blue edit"> <i class="iconfont icon-add_icon"></i>添加工程师</a>
</div>
<table class="table">
    <thead>
    <tr>
        <th class="w60 fn-tac">排序</th>
        <th class="w100">姓名</th>
        <th class="w100">职位</th>
        <th>特长</th>
        <th class="w200">联系电话</th>
        <th class="w60 fn-tac">等级</th>
        <th class="w140">更新时间</th>
        <th class="w160 fn-taj">操作</th>
    </tr>
    </thead>
    <tbody>
    {foreach $lists as $vo}
    <tr>
        <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
        <td><a class="edit" href="javascript:;" url="{:url('engineer/edit',['id'=>$vo.id])}">{$vo.title}</a></td>
        <td>{$vo.occupation}</td>
        <td>{$vo.about}</td>
        <td>{$vo.user.phone_uid}</td>
        <td class="fn-tac">{if $vo.level == 1}初级{elseif $vo.level == 2/}中级{elseif $vo.level == 3/}高级{/if}</td>
        <td>{$vo.update_time|date='Y-m-d H:i'}</td>
        <td class="button-group fn-tac">
            <a class="button edit"  href="javascript:;" url="{:url('engineer/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
            <a class="button isDel" url="{:url('engineer/delete',['id'=>$vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
    Do('base', 'layer', function () {
        $('.isDel').isDel();
        $('.edit').win({area:['600px','350px'],reload:1});
        sort("{:url('engineer/sort')}");
    })
</script>
